package elements;

import org.lwjgl.util.vector.Vector2f;

public class Element {
    
    //Position of element on screen
    private Vector2f position;
    private Vector2f size;

    
    
    /**
     * Translate element by given translation vector
     * @param delta Translation vector
     */
    public void translate(Vector2f delta) {
	position.translate(delta.x, delta.y);
    }

    /**
     * Translate element by given x and y displacements
     * @param x horizontal displacement
     * @param y vertical displacement
     */
    public void translate(float x, float y) {
	position.translate(x, y);
    }
}